package io.github.lee.plugin.depend.impl

import io.github.lee.plugin.depend.Versions
import io.github.lee.plugin.depend.handler.IHandlerDepend
import io.github.lee.plugin.depend.handler.implementation
import io.github.lee.plugin.depend.handler.kapt
import io.github.lee.plugin.depend.handler.testImplementation
import org.gradle.api.artifacts.dsl.DependencyHandler

object Room : IHandlerDepend {
    private const val roomRuntime = "androidx.room:room-runtime:${Versions.room}"
    private const val roomCompiler = "androidx.room:room-compiler:${Versions.room}"
    private const val roomKtx = "androidx.room:room-ktx:${Versions.room}"
    private const val roomTesting = "androidx.room:room-testing:${Versions.room}"
    private const val roomPaging3 = "androidx.room:room-paging:${Versions.room}"

    override fun handler(handler: DependencyHandler) {
        handler.implementation(roomRuntime)
        handler.kapt(roomCompiler)
        handler.implementation(roomKtx)
        handler.testImplementation(roomTesting)
        handler.implementation(roomPaging3)
    }

}